package com.jdd.modules.parkcar.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jdd.common.util.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;


/**
 * @Description: 黑白名单导入模板(自定义时间)
 * @author: ZhuLiuWei
 * @date: 2021/12/24 11:13
 */
@Data
@TableName("park_white_list")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "park_white_list对象", description = "白名单")
public class ParkBlackAndWhiteImport {
    /**
     * 车牌号
     */
    @Excel(name = "车牌号", width = 15)
    @ApiModelProperty(value = "车牌号")
    private String plateNo;
    /**
     * 有效期类别
     */
    @Excel(name = "有效期类别", width = 15)
    @ApiModelProperty(value = "有效期类别")
    private String isForever;
    /**
     * 有效期开始日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "起始日期(如：2021-01-01)", width = 25)
    @ApiModelProperty(value = "有效期开始日期")
    private String startDate;
    /**
     * 有效期结束日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束日期(如：2021-12-31)", width = 25)
    @ApiModelProperty(value = "有效期结束日期")
    private String endDate;
    /**
     * 有效期开始时间
     */
    @Excel(name = "开始时间(如：00:00:00)", width = 25)
    @ApiModelProperty(value = "有效期开始时间")
    private String startTime;
    /**
     * 有效期结束时间
     */
    @Excel(name = "结束时间(如：23:59:59)", width = 25)
    @ApiModelProperty(value = "有效期结束时间")
    private String endTime;
    /**
     * 客户姓名
     */
    @Excel(name = "车主/姓名", width = 15)
    @ApiModelProperty(value = "客户姓名")
    private String userName;
    /**
     * 客户手机号码
     */
    @Excel(name = "手机号码", width = 15)
    @ApiModelProperty(value = "客户手机号码")
    private String mobile;
    /**
     * 家庭住址
     */
    @Excel(name = "住址", width = 30)
    @ApiModelProperty(value = "家庭住址")
    private String address;
    /**
     * 车辆备注
     */
    @Excel(name = "备注信息", width = 30)
    @ApiModelProperty(value = "车辆备注")
    private String remark;
}
